package com.zjy.user.mapper;

import com.zjy.user.domain.User;
import com.zjy.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tom
 * @since 2022-11-02
 */
public interface UserMapper extends BaseMapper<User> {
    User findByPhone(String phone);

    User findByEmail(String email);

    void updateState(@Param("id") Long id, @Param("state") int i);

    User findByLogininfoId(Long id);
}
